package com.RedRiver.hospitalsystem.finance_service.client.param;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
public class CreateBillFromClient {
    /**
     *  检查或处方或挂号的id
     */
    @NotNull(message = "检查或处方或挂号的id不能为空")
    private Integer checkId;
    /**
     *  缴费类别 1药品 2检查 3挂号
     */
    @NotNull(message = "缴费类别不能为空")
    private Integer paymentId;
    /**
     * 患者id
     */
    @NotNull(message = "患者id不能为空")
    private Integer patientId;
    /**
     * 操作人id
     */
    private Integer workerId;
    /**
     * 金额
     */
    @DecimalMin(value = "0.00",message = "金额不宜过低")
    private BigDecimal billPrice;
    /**
     * 订单详情
     */
    private List<BillDetailFromClient> list;


}
